package com.gec.yhzh.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gec.yhzh.entity.Vaccine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 疫苗 Mapper 接口
 * </p>
 *
 * @author jerry
 * @since 2025-03-10
 */
@Mapper
public interface VaccineMapper extends BaseMapper<Vaccine> {

    @Select("SELECT id, name, type_id, `function`, target, adverse_reaction, producer, produce_time, status FROM vaccinum.vaccine")
    List<Vaccine> listAll();

}
